package com.zspace.lwq.consumer;

import com.zspace.lwq.consumer.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @Author:liuwenqing
 * @Date:2025/4/11 16:55
 * @Description:
 **/
public class MainApplication {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        OrderService orderService = (OrderService)context.getBean("orderServiceImpl");
        orderService.initOrder("1");
        System.in.read();
    }

}
